
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipTask;
import com.sasis.dao.VipTaskDao;
import com.sasis.service.VipTaskManager;

public class VipTaskManagerImpl extends BaseManager implements VipTaskManager {
    private VipTaskDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipTaskDao(VipTaskDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipTaskManager#getVipTasks(com.sasis.model.VipTask)
     */
    public List getVipTasks(final VipTask vipTask) {
        return dao.getVipTasks(vipTask);
    }

    /**
     * @see com.sasis.service.VipTaskManager#getVipTask(String id)
     */
    public VipTask getVipTask(final String id) {
        return dao.getVipTask(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipTaskManager#saveVipTask(VipTask vipTask)
     */
    public int saveVipTask(VipTask vipTask) {
        return dao.saveVipTask(vipTask);
    }

    /**
     * @see com.sasis.service.VipTaskManager#removeVipTask(String id)
     */
    public void removeVipTask(final String id) {
        dao.removeVipTask(new Integer(id));
    }
    public int getVipTaskMaxId(){
    	return dao.getVipTaskMaxId();
    }
}
